.map-container {
  position: relative;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f5f5f5;
  
  .map-wrapper {
    width: 100%;
    background-color: #f5f5f5;
    position: relative;
  }
  
  .map-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 1000;
  }
  
  .edit-tips {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    max-width: 280px;
    
    .tips-content {
      display: flex;
      align-items: center;
      
      .tip-text {
        display: flex;
        align-items: center;
        white-space: nowrap;
        
        i {
          margin-right: 6px;
          color: #409eff;
          font-size: 14px;
        }
      }
    }
  }
  
  .loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    
    .loading-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      
      .loading-spinner {
        width: 32px;
        height: 32px;
        border: 3px solid #f3f3f3;
        border-top: 3px solid #409eff;
        border-radius: 50%;
        animation: spin 1s linear infinite;
      }
      
      .loading-text {
        color: #666;
        font-size: 14px;
      }
    }
  }
  
  &.readonly.no-controls {
    .map-controls {
      display: none;
    }
  }
  
  &.small-size {
    .map-controls {
      top: 5px;
      right: 5px;
      gap: 4px;
      
      .el-button {
        padding: 5px 8px;
        font-size: 12px;
      }
    }
    
    .edit-tips {
      bottom: 5px;
      right: 5px;
      padding: 4px 8px;
      font-size: 11px;
      max-width: 240px;
      
      .tips-content .tip-text {
        font-size: 11px;
        
        i {
          font-size: 12px;
        }
      }
    }
  }

  // 全屏状态样式
  &.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border: none !important;
    border-radius: 0 !important;
    
    .map-wrapper {
      width: 100% !important;
      height: 100vh !important;
    }
    
    .map-controls {
      top: 20px;
      right: 20px;
      backdrop-filter: blur(10px);
      background: rgba(255, 255, 255, 0.9);
      padding: 8px;
      border-radius: 8px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      
      .el-button {
        backdrop-filter: blur(5px);
      }
    }
    
    .edit-tips {
      bottom: 20px;
      right: 20px;
      backdrop-filter: blur(10px);
      background: rgba(0, 0, 0, 0.9);
      padding: 8px 16px;
      border-radius: 6px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      max-width: 320px;
      font-size: 13px;
      
      .tips-content .tip-text i {
        font-size: 15px;
      }
    }
    
    .loading-overlay {
      background: rgba(0, 0, 0, 0.8);
      
      .loading-content {
        .loading-text {
          color: white;
          font-size: 16px;
        }
        
        .loading-spinner {
          width: 40px;
          height: 40px;
          border-width: 4px;
        }
      }
    }
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

// 高德地图相关样式覆盖
.amap-container {
  .amap-copyright,
  .amap-logo {
    display: none !important;
  }
}

// 全屏时隐藏页面滚动条
body.fullscreen-active {
  overflow: hidden !important;
}

// 响应式设计
@media (max-width: 768px) {
  .map-container {
    .map-controls {
      top: 5px;
      right: 5px;
      flex-direction: column;
      gap: 4px;
      
      .el-button {
        padding: 6px 10px;
        font-size: 12px;
      }
    }
    
    .edit-tips {
      bottom: 10px;
      right: 10px;
      left: auto;
      transform: none;
      padding: 6px 10px;
      font-size: 11px;
      max-width: 220px;
      
      .tips-content .tip-text {
        white-space: normal;
        line-height: 1.3;
      }
    }

    // 移动端全屏样式调整
    &.fullscreen {
      .map-controls {
        top: 10px;
        right: 10px;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 6px;
        
        .el-button {
          padding: 8px 12px;
          font-size: 13px;
        }
      }
      
      .edit-tips {
        bottom: 15px;
        right: 15px;
        left: auto;
        padding: 8px 12px;
        max-width: 250px;
        
        .tips-content .tip-text {
          font-size: 12px;
          white-space: normal;
          line-height: 1.4;
        }
      }
    }
  }
} 